<%= simple_form_for [:admin, @blacklist], :defaults => { :input_html => { :class => "form-control" } }, remote: true, html: {class: 'form-horizontal' } do |f| %>
	<fieldset>
		<legend><%= title %></legend>
	  <%= f.association :terminal_group, label: '适用于', prompt: "其他设备"  %>
	  <%= f.input :address, label: '地址'  %>
	  <%= f.input :description, label: '描述'  %>
	  <%= f.input :is_active, label: '启用', :input_html => { :class => "" } %>
	  <%= f.input :is_allowed, collection:[['黑名单', false], ['白名单', true]], selected: @blacklist.is_allowed, label: '性质' %>
	  <%= f.button :wrapped, value: '提 交' %>
	</fieldset>
<% end %>
<%= javascript_include_tag "prevent_label.js" %>
